<html>
    <head lang="en">
        <meta charset="UTF-8">
            <title>JS 数据发送 OC</title>
            <style type="text/css">
                *{
                    font-size: 40px;
                }
            </style>
    </head>
    
    <body>
        
        <div style=" margin-top: 150px">
            
            <p></p>
            
            <div>
                <button id="sendData">IOS</button>
            </div>
            
            <script type="text/javascript">
                
                sendData.onclick = function() {
                    var message = {"method":"call","args":"let go"};
                    window.webkit.messageHandlers.gamePayData.postMessage(message);
                };
            
            
            function gotoCall(){
                alert('调用了OC')
            }
            
                </script>
            
    </body>
    
</html>
